#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int isChar(char c)
{
    if (c>='0'&& c<='9' || c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z')
		return c;
	else
		return 0;
}
int main()
{
	char num = 0;
	scanf("%c", &num);
	printf("%d", isChar(num));
	return 0;
}